package com.lichuang.fruitvarietysm.user;

import com.lichuang.fruitvarietysm.user.binding.Binding;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.Bean;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;

import javax.servlet.http.HttpServletRequest;

@SpringBootApplication
@MapperScan("com.lichuang.fruitvarietysm.user.mapper")
@EnableBinding(Binding.class)
@EnableCaching
public class UserProvider {

    public static void main(String[] args) {
        SpringApplication.run(UserProvider.class,args);
    }

}
